package entity

import (
	"shqsoft.cn/pasnj/base"
)

//CompClieKhgl 中小客户关联
type CompClieKhglLs struct {
	ID       int      `gorm:"AUTO_INCREMENT;primary_key;column:ID"`
	CUID     int      `gorm:"column:CUID"`
	CompClie CompClie `gorm:"ForeignKey:CUID"`
	LCUID    *int     `gorm:"column:LCUID;"`
	KHLX     string   `gorm:"column:KHLX"`
}

//TableName 表名
func (CompClieKhglLs) TableName() string {
	return "T_COMP_CLIE_KHGL_LS"
}

func CompClieKhglLsEF() base.EntityFunc {
	return func() interface{} {
		entity := CompClieKhglLs{}
		return &entity
	}
}
func CompClieKhglLsESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []CompClieKhglLs
		return &entities
	}
}
func init() {
	relationship := []string{"CompClie"}
	base.DaoPoolObj.Put("CompClieKhglLs", base.NewDefaultDao(CompClieKhglLsEF(), CompClieKhglLsESF(), relationship))
}
